const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    host: '0.0.0.0',
    port: 80,
    open: true,
    proxy: {
      ['/api']: {
        target: `http://localhost:8000`,
        changeOrigin: true,
        ws: true,
        pathRewrite: {
          ['^/api']: ''
        }
      }
    }
  }
})
